BINS := hello

all: $(BINS)

$(BINS): %: %.o
	ld -g -o $@ $@.o

%.o: %.asm
	nasm -g -f elf64 $<

clean:
	rm -f $(BINS) missing_operand_fix
	shopt -s nullglob && rm -f *.o missing_operand_fix
	rm -f *~ missing_operand_fix
